<form name="rule_agreement_form">
    <table width="100%" class="mt10" ng-controller="RuleAgreementController">
        <tbody>
        <tr>
            <td align="right" class="form-cell w200 pt16" valign="top"> 活动规则地址：</td>
            <td class="pt12">
                <input type="text" name="active_rule" id="active_rule" class="input-text fl mr10 w400"
                       ng-model="data.activityUrl" 
                       ng-pattern="/^http(s)?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$/">

                <p role="alert"
                   ng-show="rule_agreement_form.active_rule.$touched && rule_agreement_form.active_rule.$error.pattern"
                   class="error ng-hide c-red lh30 fl">
                    格式不正确</p>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w200 pt16" valign="top">机构协议标题：</td>
            <td class="pt12">
                <input type="text" name="agencyagreement_title" id="agencyagreement_title"
                       class="input-text fl mr10 w400"
                       ng-model="data.agencyagreementtitle" value="中介机构注册协议" placeholder="中介机构注册协议"  maxlength="20">
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w200 pt16" valign="top">机构协议链接：</td>
            <td class="pt12">
                <input type="text" name="agencyagreement_url" id="agencyagreement_url" class="input-text fl mr10 w400"
                       ng-model="data.agencyagreementurl" 
                       ng-pattern="/^http(s)?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$/">

                <p role="alert"
                   ng-show="rule_agreement_form.agencyagreement_url.$touched && rule_agreement_form.agencyagreement_url.$error.pattern"
                   class="error ng-hide c-red lh30 fl">
                    url格式不正确</p>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w200 pt16" valign="top">个人协议标题：</td>
            <td class="pt12">
                <input type="text" name="agreement_title" id="agreement_title" class="input-text fl mr10 w400"
                       ng-model="data.agreementtitle" value="全民营销注册协议"   maxlength="20">

            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w200 pt16" valign="top">个人协议链接：</td>
            <td class="pt12">
                <input type="text" name="agreement_url" id="agreement_url" class="input-text fl mr10 w400"
                       ng-model="data.agreementurl" 
                       ng-pattern="/^http(s)?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$/">

                <p role="alert"
                   ng-show="rule_agreement_form.agreement_url.$touched && rule_agreement_form.agreement_url.$error.pattern"
                   class="error ng-hide c-red lh30 fl">
                    url格式不正确</p>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w200 pt16" valign="top"><em class="c-red">&nbsp;</em>微信公众平台求关注图文地址：</td>
            <td class="pt12">
                <input type="text" name="seekingattention_url" id="seekingattention_url" class="input-text fl mr10 w400"
                       ng-model="data.seekingAttentionUrl"
                       ng-pattern="/^http(s)?\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?$/">

                <p role="alert"
                   ng-show="rule_agreement_form.seekingattention_url.$touched && rule_agreement_form.seekingattention_url.$error.pattern"
                   class="error ng-hide c-red lh30 fl">
                    url格式不正确</p>
            </td>
        </tr>
        <tr>
            <td align="right" class="form-cell w200 pt16" valign="top">微信客户状态变动通知模板：</td>
            <td class="pt12">
                <input type="text" name="msg_template" id="msg_template" class="input-text fl mr10 w400"
                       ng-model="data.MsgTemplateID" >

            </td>
        </tr>

        <tr>
            <td colspan="2" class="pt12">
                <button type="submit" class="btn fl permission p-500302-02" id="save_rule" style="margin-left: 526px"
                        ng-click="save(rule_agreement_form.$valid)" data-permission="500302-02">保存设置
                </button>
            </td>
        </tr>
        </tbody>
    </table>
</form>